<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="site-topbar">
    <div class="top-bar">
        <div class="welcom">欢迎来到狗狗网</div>
        <div class="topbar-cart">
            <a href="/buy" class="cart-mini">
                <img src="/resources/images/cart-icon.png" alt="cart-icon" width="30" height="30" id="cart-icon">
                <em class="car">购物车</em>
                <c:if test="${empty allCount}">
                	<span id="goods-num">(0)</span>
                </c:if>
                <c:if test="${!empty allCount}">
                	<span id="goods-num">(${allCount})</span>
                </c:if>
                
            </a>
        </div>
        <div class="login">  
        <c:if test="${empty username}">
        	<h2><a href="/login">登陆</a><span class="sep">|</span><a href="/registe">注册</a></h2>
        </c:if>
        <c:if test="${!empty username}">
       		<h2><a href="/userinfo">${username}</a><span class="sep">|</span><a href="/loginout">注销</a></h2>
        </c:if>
            
        </div>
    </div>
</div>